package spring.aop.base_pojo;

import org.springframework.aop.AfterReturningAdvice;
import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

public class SleepHelper {

    public void beforeSleep() throws Throwable {
        System.out.println("睡觉前要脱衣服！");
    }

    public void afterSleep() throws Throwable {
        System.out.println("起床后要穿衣服！");
    }
}
